package com.ccs;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

public class loading extends Activity implements Runnable {

	    
	    public void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState);
	      
	        setContentView(R.layout.splash);
	       
	        
	        Thread trload= new Thread(this);
	        trload.start();
	        
	    }
	
	    
	    public void run(){
	        try{
	         Thread.sleep(5000);
	         
	         threadHandler.sendEmptyMessage(0);
	        }
	        catch(Exception ex){}
	       
	    }
	    
	    private Handler threadHandler = new Handler() {
	        public void handleMessage(android.os.Message msg) {
	        	finish();
	        	startActivity(new Intent("com.ccs.instruction"));
	        }
	    };
}

